﻿using System.Diagnostics;

namespace PBIW.Console.Commands
{
    public interface IExecutor
    {
        void Execute(object option);
    }

    public interface IExecutor<TOption> : IExecutor where TOption : IOption
    {
        void IExecutor.Execute(object option)
        {
            Debug.Assert(option is TOption);
            this.Execute((TOption)option);
        }

        void Execute(TOption option);
    }
}
